<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Insert title here</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="tempo/tempo-2.0.js" type="text/javascript"></script>
<script src="jquery/jquery-1.8.3.js" type="text/javascript"></script>
<script>
  $(document).ready(function() {
    var educations = [
      {index:1,order:1,startDate:201201,endDate:201207},
      {index:2,order:12,startDate:201208,endDate:201212},
      {index:3,order:13,startDate:201301,endDate:201307}
    ];
    var educations2 = [
                      {index:4,order:14,startDate:201301,endDate:201307}
                    ];
    var list = $('#cv_education_list');
    var abc = Tempo.prepare(list);
    abc.render(educations);
    //abc.append(educations2);
    //abc.append(educations2);
  });
</script>
</head>
<body>

<div id="cv_education_list" class="controls">
	<div id="a1" data-before-template='data-before-template'></div>
	<div id="a2" data-before-template='data-before-template'></div>
	<div id="b1" data-after-template='data-before-template'></div>
	<div id="a3" data-before-template='data-before-template'></div>

<div id="cv_education_cur_{{_tempo.index}}" data-template >
  <label for="cv_education_{{index}}" class="control-label">教育经历-{{index}}</label>
  <br>
  <input type="hidden" id="cv_education_{{index}}" name="cvEducation[{{index}}].order" value="{{order}}" class="input-large"/>
  {% if (index == 2) %}hello{% endif %}
  <br>
</div>

</div>
</body>
</html>
